package com.dragon.modules.yuegou.excel.merchant;

import com.dragon.modules.media.annotations.ExcelSheet;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.math.BigDecimal;
import java.util.List;

@com.dragon.modules.media.annotations.ExcelWorkbook(template = "classpath:\\excel\\merchant\\merchantSalesTemplateWorkbook.xlsx")
public class MerchantSalesTemplateWorkbook {
	@ExcelSheet
	@JsonProperty("销售模板表")
	private List<SalesRow> salesList;

	public static class SalesRow {
		@JsonProperty("商户名称")
		private String merchantName;

		@JsonProperty("铺位号")
		private String merchantCode;
		
		@JsonProperty("销售总额（元）")
		private BigDecimal sales;
		
		@JsonProperty("成交量")
		private Integer volume;

		@JsonProperty("日期")
		private String staticalTime;

		public String getMerchantName() {
			return merchantName;
		}

		public void setMerchantName(String merchantName) {
			this.merchantName = merchantName;
		}

		public String getMerchantCode() {
			return merchantCode;
		}

		public void setMerchantCode(String merchantCode) {
			this.merchantCode = merchantCode;
		}

		public BigDecimal getSales() {
			return sales;
		}

		public void setSales(BigDecimal sales) {
			this.sales = sales;
		}

		public Integer getVolume() {
			return volume;
		}

		public void setVolume(Integer volume) {
			this.volume = volume;
		}

		public String getStaticalTime() {
			return staticalTime;
		}

		public void setStaticalTime(String staticalTime) {
			this.staticalTime = staticalTime;
		}
	}

	public List<SalesRow> getSalesList() {
		return salesList;
	}

	public void setSalesList(List<SalesRow> salesList) {
		this.salesList = salesList;
	}
}
